## This test checks output of llvm-dwarfutil when verbose mode
## is enabled.

# RUN: yaml2obj %p/Inputs/common.yaml -o %t.o

## Check verbose output.
# RUN: llvm-dwarfutil %t.o %t1 --verbose 2>&1 | FileCheck %s

## Check warning displayed in multi-thread mode (--num-threads set explicitly).
# RUN: llvm-dwarfutil %t.o %t1 --verbose --num-threads 10 2>&1 | FileCheck %s --check-prefix=CHECK-THREAD-WARNING

## Check -j alias.
# RUN: llvm-dwarfutil %t.o %t1 --verbose -j 10 2>&1 | FileCheck %s --check-prefix=CHECK-THREAD-WARNING

## Check verbose output for --verify.
# RUN: llvm-dwarfutil %t.o %t1 -j 1 --verbose --verify 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-VERIFY

# CHECK-NOT: warning: --num-threads set to 1 because verbose mode is specified
# CHECK: Do debug info linking...
# CHECK: Input compilation unit:
# CHECK: DW_TAG_compile_unit
# CHECK: Keeping subprogram DIE
# CHECK: DW_TAG_subprogram
# CHECK-THREAD-WARNING: warning: --num-threads set to 1 because verbose mode is specified
# CHECK-VERIFY: Verifying DWARF...
